home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / X11R4 / cmds / X / ddx / sprite.X11R3 / hdr / pr_impl_make.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-11-03  |  770 b   |  31 lines

  1. /* @(#)pr_impl_make.h 1.2 88/02/08 SMI */
  2.  
  3. #ifndef    pr_impl_make_DEFINED
  4. #define    pr_impl_make_DEFINED
  5.  
  6. /*
  7.  * Copyright 1987 by Sun Microsystems,  Inc.
  8.  */
  9.  
  10. /*
  11.  * Pr_devdata is used to keep track of the mmapped virtual
  12.  * address of a device to prevent mapping more than once.
  13.  */
  14. struct pr_devdata {
  15.     struct pr_devdata *next; /* link to next device of this type */
  16.     dev_t    rdev;        /* device type */
  17.     int    count;        /* reference count */
  18.     int    fd;        /* fd of frame buffer, -1 if unused */
  19.     caddr_t    va;         /* virtual address */
  20.     int    bytes;        /* size of va, 0 for no munmap */
  21.     caddr_t    va2;        /* second virtual address, 0 if unused */
  22.     int    bytes2;        /* second size */
  23. };
  24.  
  25. #ifndef KERNEL
  26. Pixrect *pr_makefromfd();
  27. Pixrect *pr_makefromfd_2();
  28. #endif !KERNEL
  29.  
  30. #endif    pr_impl_make_DEFINED
  31.